package com.superpai.domain;

import java.util.List;

/**
 * @author Devin.Hu
 * @date 2011-9-3
 * @version V1.0
 * @description 分类分组类model
 */
public class GroupShopCategory {

	/**分类组信息 **/
	private ShopCategory group;
	/**分类子组列表信息**/
	private List<ShopCategory> child;
	
	public GroupShopCategory(ShopCategory group, List<ShopCategory> child) {  
        this.group = group;  
        this.child = child;  
    }  
      
    public void add(ShopCategory info){  
        child.add(info);  
    }  
      
    public void remove(ShopCategory info){  
        child.remove(info);  
    }  
      
    public void remove(int index){  
        child.remove(index);  
    }  
      
    public int getChildSize(){  
        return child.size();  
    }  
      
    public ShopCategory getChild(int index){  
        return child.get(index);  
    }

	public ShopCategory getGroup() {
		return group;
	}

	public void setGroup(ShopCategory group) {
		this.group = group;
	}

	public List<ShopCategory> getChild() {
		return child;
	}

	public void setChild(List<ShopCategory> child) {
		this.child = child;
	}  
	
}
